<?php
if(isset($_GET['anid'])){
require_once 'dbconn.php';
$anid=$_GET['anid'];
$sql="select uname,title,content,to_char(time, 'YYYY-MM-DD HH24:MI:SS') from announce where anid=".$anid;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$uname=$row['uname'];
$title=$row['title'];
$time=$row['to_char'];
$content=$row['content'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>公告浏览</title>
<link href="css/twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
</head>
<body class="twoColFixLtHdr">
<div id="logo"></div>
<div id="navi"><table border="0" cellpadding="0" cellspacing="0"><tr>
<?php
require_once 'dbconn.php';
$sql="select * from module";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrowset($result);
require_once 'resource_list.php';
foreach($row as $arr)
{
$modname=$arr['modname'];
$modhref=$arr['modhref'];
navi_list($modname,$modhref);
}
?>
</tr></table>
</div>
<div id="container">
<br /><h1>IBM俱乐部公告浏览</h1>
<hr size="5" color="#9D9D9D" />
<hr size="5" color="#9D9D9D" />
</div>
<div id="container">
<table width="960"  cellpadding="0" cellspacing="0" border="0" id="table">
<tr>
<td height="600" style="vertical-align:top; padding-top:20px;">

<table id="table_annview" width="800px" border="0" cellpadding="0" cellspacing="0">
<tr><th><?php echo $title;?></th></tr>
<tr><td style="text-align:center;">发布者:<?php echo $uname;?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $time;?></td></tr>
<tr><td height="15"></td></tr>
<tr><td><?php echo $content;?></th></td>
</table>

</td></tr></table>
</div>
<div id="footer">
<p>Copyright © 2010 IBM club,Shenzhen University, All Rights Reserved.</p></div>
</div>
</body>
</html>
